﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrinterMonitorSvc.Model
{
    /// <summary>
    /// 日志记录Model
    /// </summary>
    public class LogModel
    {
        /// <summary>
        /// 下载开始时间
        /// </summary>
        public DateTime DownloadStartTime = DateTime.Now;
        /// <summary>
        /// 下载结束时间
        /// </summary>
        public DateTime DownloadEndTime = DateTime.Now;
        /// <summary>
        /// 请求开始时间
        /// </summary>
        public DateTime RequestStartTime = DateTime.Now;
        /// <summary>
        /// 请求结束时间
        /// </summary>
        public DateTime RequestEndTime = DateTime.Now;
        /// <summary>
        /// 合并开始时间
        /// </summary>
        public DateTime MergeStartTime = DateTime.Now;
        /// <summary>
        /// 合并结束时间
        /// </summary>
        public DateTime MergeEndTime = DateTime.Now;



        /// <summary>
        /// 请求ID
        /// </summary>
        public string RequestId { get; set; } = Guid.NewGuid().ToString();
        /// <summary>
        /// 运行总时间
        /// </summary>
        public long TotalTime { get; set; } = 0;
        /// <summary>
        /// 文件下载时间
        /// </summary>
        public long DownloadFileTime { get; set; } = 0;
        /// <summary>
        /// 文件合并时间
        /// </summary>
        public long MergeFileTime { get; set; } = 0;
        /// <summary>
        /// 请求参数
        /// </summary>
        public string Content { get; set; } = null;
        /// <summary>
        /// 总文件数量
        /// </summary>
        public int TotalFileNum = 1;
        /// <summary>
        /// 下载文件数量
        /// </summary>
        public int DownloadFileNum = 1;
        /// <summary>
        /// 打印份数
        /// </summary>
        public int PrintCopyNum = 1;
    }
}
